home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / MiscSelectionMatrix.h < prev    next >
Encoding:
Text File  |  1995-04-12  |  1.8 KB  |  64 lines

  1. //
  2. //    MiscSelectionMatrix -- a class to make the Matrix more functional
  3. //        Written by Georg Tuparev Copyright (c) 1994 by Georg Tuparev, 
  4. //         EMBL & Academia Naturalis, Heidelberg, Germany.
  5. //                Version 0.5 beta  All rights reserved.
  6. //
  7. //        This notice may not be removed from this source code.
  8. //
  9. //        This is a free object!  Contact the author for the latest version.
  10. //        Georg Tuparev, EMBL / BioComputing, Meyerhofstr. 1, 
  11. //            D-69117 Heidelberg, Germany
  12. //            Phone: +49 - 6221 - 387528
  13. //            Fax:   +49 - 6221 - 387517
  14. //        e-mail:  Tuparev@EMBL-Heidelberg.de
  15. //
  16. //    This object is included in the MiscKit by permission from the author
  17. //    and its use is governed by the MiscKit license, found in the file
  18. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  19. //    for a list of all applicable permissions and restrictions.
  20. //    
  21.  
  22. #import <appkit/appkit.h>
  23.  
  24. @interface MiscSelectionMatrix:Matrix
  25. {
  26.     List *selectionOrder;
  27. }
  28. + initialize;
  29.  
  30. - initFrame:(const NXRect *)frm mode:(int)aMode prototype:cellId 
  31.     numRows:(int)rowsHigh numCols:(int)colsWide;
  32. - initFrame:(const NXRect *)frm mode:(int)aMode cellClass:factoryId 
  33.             numRows:(int)rowsHigh numCols:(int)colsWide;
  34. - copyFromZone:(NXZone *)zone;
  35. - free;
  36.  
  37. /* This methods are still not ready.
  38. - setReorderActionEnabled:(BOOL)aFlag;
  39. - (BOOL)reorderActionEnabled;
  40. */
  41.  
  42. // New selection methods
  43. - addSelectionForCell:aCell;
  44. - addSelectionAt:(int)row :(int)col;
  45. - addSelectionForRow:(int)row;
  46. - addSelectionForColumn:(int)col;
  47. - addSelectionForCellWithTag:(int)aTag;
  48.  
  49. - deselectCell:aCell;
  50. - deselectCellAt:(int)row :(int)col;
  51. - deselectRow:(int)row;
  52. - deselectColumn:(int)col;
  53. - deselectCellWithTag:(int)aTag;
  54. - getOrderedSelectedCells:(List *)aList;
  55.  
  56. // end of new methods
  57.  
  58. - mouseDown:(NXEvent *)theEvent;
  59.  
  60. - read:(NXTypedStream *)typedStream;
  61. - write:(NXTypedStream *)typedStream;
  62.  
  63. @end
  64.